<me:UIVAART x:Class="WPFExcelReport.UVAVK"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                 xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                  xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                   x:Name="TV"
             Loaded="Window_Loaded"
                    Background="White"   
      >
    <me:UIVAART.Resources>
        <CollectionViewSource  x:Key="vwMaster"  />
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:PNumConverter  x:Key="pnum"/> 
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIVAART.Resources>
    <StackPanel >
        <WrapPanel Margin="0,5,0,0">
            <Grid >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Margin="5,0,0,0" Grid.Column="0" Text= "销售价:"/>
                <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding VAAARTWEB}" 
                           Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource nbv}}"
                           VerticalAlignment="Top" />

            </Grid>
            <Grid Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}" >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <ex:NumericBox  Margin="5,0,0,0" MaxLength="8"  Grid.Column="0" Grid.Row="0" DecimalPlaces="2" 
                               Text="{Binding WSPRICE,ElementName=TV}" 
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"
                                FontSize="18" Width="60" />
                <TextBlock Text="{Binding CURRENCY,ElementName=TV}" 
                           Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource nbv}}"/>
                <SD:TSSD0149 Grid.Column="1" Grid.Row="0"
                             KEY="{Binding CURRENCY,ElementName=TV}"
                              Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
                             IsEdit="{Binding IsEdit,ElementName=TV}" />
                <TextBlock Text="{Binding PRMEEH,ElementName=TV}"
                           Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource nbv}}"/>
                <SD:TSSD0181 Grid.Column="2" Grid.Row="0"
                             KEY="{Binding PRMEEH,ElementName=TV}" 
                              Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
                             IsEdit="{Binding IsEdit,ElementName=TV}" />
            </Grid>
        </WrapPanel>
    </StackPanel> 
</me:UIVAART>
